﻿#include "FITKMeshGenGmshInterface.h"
#include "FITKMeshGenerateProcessorGmsh.h"
#include "FITKMeshSizeGeneratorGmsh.h"
#include "FITKMeshAlgorithmGeneratorGmsh.h"
#include "FITKMesherDriverGmsh.h"
#include "FITK_Interface/FITKInterfaceMeshGen/FITKMeshGenInterface.h"

namespace Gmsh
{
    FITKMeshGenGmshInterface::FITKMeshGenGmshInterface()
    {
        //获取工厂
        Interface::FITKMeshGenInterface* mf = Interface::FITKMeshGenInterface::getInstance();
        if (nullptr == mf) return;
        //注册相关类
        mf->regMeshSizeGenerator(new FITKMeshSizeGeneratorGmsh);
        mf->regMesherDriver(new FITKMesherDriverGmsh);
        mf->regMeshProcessor(new FITKMeshGenerateProcessorGmsh);
        mf->regMeshAlgorithmGenerator(new FITKMeshAlgorithmGeneratorGmsh);
    }


    QString FITKMeshGenGmshInterface::getComponentName()
    {
        //名称
        return QString("FITKMeshGenGmsh");
    }

    bool FITKMeshGenGmshInterface::exec(const int indexPort)
    {
        return false;
    }


}



